from bs4 import BeautifulSoup
file=open('index.html', encoding='utf-8')
soup=BeautifulSoup(file,'lxml')
soup.select('a')